<template>
	<button @click="fun2">模版</button>
	<button @click="InsertXml">插入</button>
</template>
<script setup lang="ts">
import { onMounted, ref } from "vue"
import StaticResources from "@/utils/StaticResources"

import { useCommomStore } from "@/pinia/store/commom.pinia"

const storeCommomStore = useCommomStore()
const props = defineProps(["myWriterControl"])
onMounted(() => {
	// storeCommomStore.Handle_Event(props.myWriterControl);
})

function fun2() {
	let ctl = document.getElementById(props.myWriterControl)

	let file = new Array()
	file.push(StaticResources.xmlforload)

	let options1 = new Array()
	var attr1 = {
		ID: "sun1", //
		Title: "术前小结",
		Parameters: { rdogroup: "V3", chkgroup: "V2,V3" }, //绑定的数据格式
		DataBindingXML:
			"<DataSourceName><Name>王二麻</Name><Sex>男</Sex></DataSourceName>"
	}
	options1.push(attr1)
	let options = ref({
		Files: file,
		Options: options1,
		Usebase64: "false"
	})

	let result = ctl?.AppendSubDocuments(options.value)
	if (result) {
		storeCommomStore.Refresh(props.myWriterControl)
	}
}
function InsertXml() {
	let ctl = document.getElementById(props.myWriterControl)

	let str = `<XTextDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" EditorVersionString="1.2023.3.6"><XElements><Element xsi:type="XTextHeader"><InnerID>5002</InnerID><AcceptTab>true</AcceptTab><XElements><Element xsi:type="XParagraphFlag" StyleIndex="0"><InnerID>5008</InnerID><AutoCreate>true</AutoCreate></Element></XElements></Element><Element xsi:type="XTextBody"><InnerID>5003</InnerID><AcceptTab>true</AcceptTab><XElements><Element xsi:type="XTextTable" StyleIndex="1" NumOfRows="6" NumOfColumns="2"><InnerID>32</InnerID><XElements><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>33</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>34</InnerID><XElements><Element xsi:type="XString"><InnerID>855</InnerID><Text>    姓  名：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>1ec0ef17-34f3-4fa1-a7db-7bc628ee6bc7</Value></Attribute><Attribute><Name>ClickID</Name><Value>cdddaebc-6443-42be-a449-460f6bebf06a</Value></Attribute></Attributes><InnerID>36</InnerID><ID>姓名1</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>857</InnerID><Text>刘XX</Text></Element></XElements><BorderElementColor /><Name>b207c950-24bd-437e-987b-de72341e7285</Name><InnerValue>刘XX</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" WhitespaceCount="1"><InnerID>856</InnerID><Text> </Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>39</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>40</InnerID><XElements><Element xsi:type="XString"><InnerID>858</InnerID><Text>职  业：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>99637318-0cbb-4b2a-a320-c74ac86e6936</Value></Attribute><Attribute><Name>ClickID</Name><Value>b74be8cf-1833-4a81-b331-80ae01f78e07</Value></Attribute></Attributes><InnerID>42</InnerID><ID>职业</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>859</InnerID><Text>离退休</Text></Element></XElements><BorderElementColor /><Name>09e64fee-8bf1-4ed1-ac1f-bcc9df0e1748</Name><InnerValue>离退休</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>44</InnerID></Element></XElements></Element></XElements></Element><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>45</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>46</InnerID><XElements><Element xsi:type="XString"><InnerID>860</InnerID><Text>    性  别：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>0051a0e5-9f57-4a1e-8830-ac1833350a2d</Value></Attribute><Attribute><Name>ClickID</Name><Value>ab6a7560-839a-4247-8ec4-3a54ad0bc2d9</Value></Attribute></Attributes><InnerID>48</InnerID><ID>性别</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>861</InnerID><Text>女</Text></Element></XElements><BorderElementColor /><Name>a7eb4d98-8a62-4034-8f32-a96523c540fd</Name><InnerValue>女</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>50</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>51</InnerID><XElements><Element xsi:type="XString"><InnerID>862</InnerID><Text>工作单位：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>cc44762a-b84b-4ad7-b7fb-92e734ab4cc7</Value></Attribute><Attribute><Name>ClickID</Name><Value>732677f9-90da-466f-a562-cf144a8a8e85</Value></Attribute></Attributes><InnerID>53</InnerID><ID>工作单位</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>863</InnerID><Text>南京市XX局</Text></Element></XElements><BorderElementColor /><Name>c035ba8d-ba8f-4aa9-bd4d-14d5e5d1a8a3</Name><InnerValue>南京市XX局</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>55</InnerID></Element></XElements></Element></XElements></Element><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>56</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>57</InnerID><XElements><Element xsi:type="XString"><InnerID>864</InnerID><Text>    年  龄：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ClickID</Name><Value>50135b70-0563-4faa-a135-d217d1d7414c</Value></Attribute><Attribute><Name>ID</Name><Value>d5585798-ac58-4836-ba5d-e8ba8925f808</Value></Attribute></Attributes><InnerID>59</InnerID><ID>年龄</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>866</InnerID><Text>82岁</Text></Element></XElements><BorderElementColor /><Name>cd89e6bc-10e5-4fd6-a3d9-cdc60d716547</Name><InnerValue>82岁</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" WhitespaceCount="1"><InnerID>865</InnerID><Text> </Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>62</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>63</InnerID><XElements><Element xsi:type="XString"><InnerID>867</InnerID><Text>住  址：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>d4a224b0-946b-448e-9157-b8f7600ccd67</Value></Attribute><Attribute><Name>ClickID</Name><Value>510bfb93-0b1b-49b9-b8cd-84b49c99e1e9</Value></Attribute></Attributes><InnerID>65</InnerID><ID>住址</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>868</InnerID><Text>长虹路XX号2单元301室</Text></Element></XElements><BorderElementColor /><Name>253c8b96-d97e-4bc4-926a-d0b39862688b</Name><InnerValue>长虹路XX号2单元301室</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>67</InnerID></Element></XElements></Element></XElements></Element><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>68</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>69</InnerID><XElements><Element xsi:type="XString"><InnerID>869</InnerID><Text>    婚  姻：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>f52fba55-0290-4e5b-a0da-160bde8c3ee2</Value></Attribute><Attribute><Name>ClickID</Name><Value>f88ca29a-2e0a-4ce9-97f1-ca11b0a36941</Value></Attribute></Attributes><InnerID>71</InnerID><ID>婚姻</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>871</InnerID><Text>已婚</Text></Element></XElements><BorderElementColor /><Name>605c7ddd-4f22-493a-b1f1-01f9dc832195</Name><InnerValue>已婚</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" WhitespaceCount="1"><InnerID>870</InnerID><Text> </Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>74</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>75</InnerID><XElements><Element xsi:type="XString"><InnerID>872</InnerID><Text>供史者(与患者关系)：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>574a551d-55ea-4ba6-b71f-43de43d1f034</Value></Attribute></Attributes><InnerID>77</InnerID><ID>e296aa52-e691-4f77-b3c5-6fe0b367b778</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>faecf25e-5d21-4152-90ba-3d1dd3f4096c</Name><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XInputField" StyleIndex="3"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>d0f096bf-196d-4450-8e17-f81501ca24ab</Value></Attribute></Attributes><InnerID>78</InnerID><ID>6feaa302-2691-4c73-8a6f-edd75794b9d9</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString" StyleIndex="3"><InnerID>873</InnerID><Text>(可靠)</Text></Element></XElements><BorderElementColor /><Name>6feaa302-2691-4c73-8a6f-edd75794b9d9</Name><InnerValue>(可靠)</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>(可靠)</Text></Item><Item><Text>(不可靠)</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>80</InnerID></Element></XElements></Element></XElements></Element><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>81</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>82</InnerID><XElements><Element xsi:type="XString"><InnerID>874</InnerID><Text>    出生地：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>73c0703c-0aff-4326-a1fd-93602045dcee</Value></Attribute><Attribute><Name>ClickID</Name><Value>b8feab8e-4811-4a8a-8671-6b9b475bf290</Value></Attribute></Attributes><InnerID>84</InnerID><ID>出生地</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>876</InnerID><Text>江苏省南京市</Text></Element></XElements><BorderElementColor /><Name>a86f8acf-1275-4f67-ab24-b3165bd6e3be</Name><InnerValue>江苏省南京市</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" WhitespaceCount="1"><InnerID>875</InnerID><Text> </Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>87</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>88</InnerID><XElements><Element xsi:type="XString"><InnerID>877</InnerID><Text>入院日期：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>d48764c7-2fc9-4291-b534-c8d3d1bc957c</Value></Attribute><Attribute><Name>ClickID</Name><Value>fe65c909-dd53-4259-a20f-d274fc24a125</Value></Attribute></Attributes><InnerID>90</InnerID><ID>入院日期</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>878</InnerID><Text>2014年03月14日 14时08分</Text></Element></XElements><BorderElementColor /><UserEditable>false</UserEditable><Name>3c7cfc26-995d-4cd0-a4a5-8990e0e49f12</Name><DisplayFormat><Style>DateTime</Style><Format>yyyy年MM月dd日 HH时mm分</Format></DisplayFormat><InnerValue>2014年03月14日 14时08分</InnerValue><BackgroundText>yyyy年MM月dd日 HH时mm分</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DateTime</EditStyle></FieldSettings></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>92</InnerID></Element></XElements></Element></XElements></Element><Element xsi:type="XTextTableRow" StyleIndex="1"><InnerID>93</InnerID><XElements><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>94</InnerID><XElements><Element xsi:type="XString"><InnerID>879</InnerID><Text>    民  族：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name><Value>e7bcc660-dafd-43e5-8c8d-1f47c802afb9</Value></Attribute><Attribute><Name>ClickID</Name><Value>a82dac83-ed88-455c-80c1-255d7683a0ef</Value></Attribute></Attributes><InnerID>96</InnerID><ID>民族</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>881</InnerID><Text>汉族</Text></Element></XElements><BorderElementColor /><Name>09443e01-8ded-4356-8f1a-1c7762344f52</Name><InnerValue>汉族</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" WhitespaceCount="1"><InnerID>880</InnerID><Text> </Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>99</InnerID></Element></XElements></Element><Element xsi:type="XTextTableCell" StyleIndex="2"><InnerID>100</InnerID><XElements><Element xsi:type="XString"><InnerID>882</InnerID><Text>记录日期：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>a427df6b-e0f1-4585-b40f-f7bae49d8190</Value></Attribute></Attributes><InnerID>102</InnerID><ID>f6e1854f-7e55-4f02-b1cf-cede401631ca</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><UserEditable>false</UserEditable><Name>440fba0f-82f8-4e6c-b6f3-4b8fe84fc6e8</Name><DisplayFormat><Style>DateTime</Style><Format>yyyy-MM-dd HH:mm</Format></DisplayFormat><BackgroundText>yyyy年MM月dd日 HH时mm分</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DateTime</EditStyle></FieldSettings></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>103</InnerID></Element></XElements></Element></XElements></Element></XElements><Columns><Element xsi:type="XTextTableColumn"><InnerID>104</InnerID><Width>876.3461</Width></Element><Element xsi:type="XTextTableColumn"><InnerID>105</InnerID><Width>1004.65387</Width></Element></Columns></Element><Element xsi:type="XString" StyleIndex="4"><InnerID>823</InnerID><Text>主  诉</Text></Element><Element xsi:type="XString"><InnerID>824</InnerID><Text>：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ClickID</Name><Value>99b9c766-3b1d-433d-884b-a809ee4f7d3d</Value></Attribute><Attribute><Name>ID</Name><Value>ec8443e8-8703-4635-98c9-ba0ae657c4aa</Value></Attribute></Attributes><InnerID>108</InnerID><ID>主诉</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>19124003-2cbe-4f8c-89aa-6286b42a812e</Name><BackgroundText>请在这里输入主诉！</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>825</InnerID><Text>。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>110</InnerID></Element><Element xsi:type="XString" StyleIndex="4"><InnerID>826</InnerID><Text>现病史</Text></Element><Element xsi:type="XString"><InnerID>827</InnerID><Text>：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>dec32e41-57c5-4f09-a816-00ea580c7187</Value></Attribute></Attributes><InnerID>113</InnerID><ID>33ee17fd-00c0-4ab1-8be1-2ec397055435</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>600e0305-5654-488f-8c0a-0e7a9f36fc6d</Name><BackgroundText>请在这里输入现病史！</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>828</InnerID><Text>。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>115</InnerID></Element><Element xsi:type="XString" StyleIndex="5"><InnerID>829</InnerID><Text>既往史</Text></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>830</InnerID><Text>：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name></Attribute></Attributes><InnerID>118</InnerID><ID>451fe78a-6fb7-4ffd-ac19-26e3b8affa01</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>79621404-b90a-4cfa-8010-4e6a03157c9d</Value></Attribute></Attributes><InnerID>119</InnerID><ID>325c8ca6-d449-4cac-b551-084a76150524</ID><EnableValueValidate>true</EnableValueValidate><ValidateStyle /><ValueBinding /><XElements><Element xsi:type="XString"><InnerID>883</InnerID><Text>既往否认“肝炎、结核”等急慢性传染病，否认糖尿病、冠心病、高血压病 病史，否认外伤及手术史，否认输血史。否认食物过敏史，否认药物过敏史，预防接种史不详。否认疫区接触史，无毒物、放射性物质接触史。</Text></Element></XElements><AcceptChildElementTypes2>Text LineBreak ParagraphFlag</AcceptChildElementTypes2><BorderElementColor /><Name>aa6d39d5-1a27-45ad-87af-2acd7be4add8</Name><InnerValue>既往否认“肝炎、结核”等急慢性传染病，否认糖尿病、冠心病、高血压病 病史，否认外伤及手术史，否认输血史。否认食物过敏史，否认药物过敏史，预防接种史不详。否认疫区接触史，无毒物、放射性物质接触史。</InnerValue><FieldSettings /></Element></XElements><BorderElementColor /><Name>600e0305-5654-488f-8c0a-0e7a9f36fc6d</Name><InnerValue>既往否认“肝炎、结核”等急慢性传染病，否认糖尿病、冠心病、高血压病 病史，否认外伤及手术史，否认输血史。否认食物过敏史，否认药物过敏史，预防接种史不详。否认疫区接触史，无毒物、放射性物质接触史。</InnerValue><BackgroundText>请在这里输入既往史！</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>121</InnerID></Element><Element xsi:type="XString" StyleIndex="5"><InnerID>831</InnerID><Text>个人史</Text></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>832</InnerID><Text>：</Text></Element><Element xsi:type="XString"><InnerID>833</InnerID><Text>出生地：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>b6faf790-87a0-4400-a361-4a26c54fb548</Value></Attribute></Attributes><InnerID>125</InnerID><ID>3ed5f5aa-c9b0-4fcc-ba40-8b220bf90627</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>77a47a35-edae-4e39-abf1-8576942809c1</Name><BackgroundText>出生地</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString"><InnerID>834</InnerID><Text>，职业：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>92c0bb86-c48c-4acc-b373-5aca5764a0e2</Value></Attribute></Attributes><InnerID>127</InnerID><ID>5d377c38-cd24-4b4c-b591-73faf7bc7665</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>43da655d-b82f-4ad0-b191-2b1496aaaeea</Name><BackgroundText>职业</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString"><InnerID>835</InnerID><Text>，无冶游史，嗜烟：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>f84a5fd3-1d36-4517-a586-a49fcbda70cb</Value></Attribute></Attributes><InnerID>129</InnerID><ID>f6ce1e49-ac99-4f68-8407-d36117974538</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>884</InnerID><Text>无</Text></Element></XElements><BorderElementColor /><Name>f895b955-2ac3-42e7-8a74-d07a542dd8e2</Name><InnerValue>无</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>无</Text></Item><Item><Text>有（约   年，平均   支/日）</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>836</InnerID><Text>，嗜酒：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>0879720b-01c5-4c37-9d27-86cc84a9e529</Value></Attribute></Attributes><InnerID>132</InnerID><ID>859486cc-0df5-433e-8ddb-1904f4a3a6da</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>885</InnerID><Text>无</Text></Element></XElements><BorderElementColor /><Name>289c6438-ed00-4c0c-a64d-1c030784ebeb</Name><InnerValue>无</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>无</Text></Item><Item><Text>偶尔</Text></Item><Item><Text>经常（约   年，平均   两/日）</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>837</InnerID><Text>。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="3"><InnerID>135</InnerID></Element><Element xsi:type="XString" StyleIndex="5"><InnerID>838</InnerID><Text>婚育史</Text></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>839</InnerID><Text>：</Text></Element><Element xsi:type="XString"><InnerID>840</InnerID><Text>婚姻状况：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>bc24dd67-3e2e-4e7c-a587-70e1cafd5bef</Value></Attribute></Attributes><InnerID>139</InnerID><ID>06cee373-a8f3-4f42-b2a3-139b4b00cf8f</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>886</InnerID><Text>未婚</Text></Element></XElements><BorderElementColor /><Name>26f3e4bb-5c56-4f5f-88eb-e8840422d420</Name><InnerValue>未婚</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>未婚</Text></Item><Item><Text>已婚</Text></Item><Item /></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>841</InnerID><Text>，结婚年龄：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>f3b4d67c-86fe-427a-a3d7-5b7e475cdaf7</Value></Attribute></Attributes><InnerID>142</InnerID><ID>399db9cd-e67b-473b-a280-d6edd520630f</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>887</InnerID><Text>TRTR</Text></Element></XElements><BorderElementColor /><Name>26f3e4bb-5c56-4f5f-88eb-e8840422d420</Name><InnerValue>TRTR</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString"><InnerID>842</InnerID><Text>，配偶情况：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>ef45532f-ff1f-482e-9bd1-fa314a17d636</Value></Attribute></Attributes><InnerID>145</InnerID><ID>2eb7000b-29de-47a2-bbdb-4421404da922</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>26f3e4bb-5c56-4f5f-88eb-e8840422d420</Name><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString"><InnerID>843</InnerID><Text>，</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>316578b7-c9af-436a-901a-800469baa49d</Value></Attribute></Attributes><InnerID>147</InnerID><ID>87c19e6d-6795-493f-8eb5-78508cceed35</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>888</InnerID><Text>有</Text></Element></XElements><BorderElementColor /><Name>17852831-0912-4cd3-b63a-d5487217e090</Name><InnerValue>有</InnerValue><BackgroundText>有无子女</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>无</Text></Item><Item><Text>有</Text></Item><Item /></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>844</InnerID><Text>子女。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>150</InnerID></Element><Element xsi:type="XString" StyleIndex="5"><InnerID>845</InnerID><Text>月经史</Text></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>846</InnerID><Text>：</Text></Element><Element xsi:type="XMedicalExpressionField"><InnerID>153</InnerID><EnableValueValidate>true</EnableValueValidate><ValidateStyle /><ValueBinding /><XElements><Element xsi:type="XString" StyleIndex="1"><InnerID>889</InnerID><Text>Value1,Value2,Value2,Value4</Text></Element></XElements><BorderElementColor /><Width>446</Width><Height>85</Height></Element><Element xsi:type="XString"><InnerID>847</InnerID><Text>，经期</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>050a357e-4202-4667-8863-72d05628c3d4</Value></Attribute></Attributes><InnerID>156</InnerID><ID>cde588a8-7d72-4e5a-8727-42acb9f8c44a</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>890</InnerID><Text>规则</Text></Element></XElements><BorderElementColor /><Name>cdb7a57a-34d9-44ed-8079-ac7997e3f72c</Name><InnerValue>规则</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>规则</Text></Item><Item><Text>不规则</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>848</InnerID><Text>，月经量</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>414ac517-aa6b-4ab1-abef-eeb51f0ba09c</Value></Attribute></Attributes><InnerID>159</InnerID><ID>b28782bf-62d3-485a-af7e-b06237d00b27</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>891</InnerID><Text>正常</Text></Element></XElements><BorderElementColor /><Name>0771113b-6d8e-48b2-9546-ee27f2f9ac8b</Name><InnerValue>正常</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>正常</Text></Item><Item><Text>少</Text></Item><Item><Text>一般</Text></Item><Item><Text>多</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>849</InnerID><Text>，</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name></Attribute></Attributes><InnerID>162</InnerID><ID>53ddf1c2-b12d-4530-b6cb-5e7335372a1f</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><UserEditable>false</UserEditable><Name>ece3760c-f297-4703-82ec-9f86a89d0cf1</Name><BackgroundText>有无痛经</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item /><Item><Text>有痛经</Text></Item><Item><Text>无痛经</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>850</InnerID><Text>，</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name></Attribute></Attributes><InnerID>164</InnerID><ID>d2436df7-6d76-4626-b6ea-fea0515d1cd4</ID><EnableValueValidate>true</EnableValueValidate><BorderElementColor /><Name>cccb0660-c48f-49ee-ab5b-eeb9bb89902b</Name><BackgroundText>有无白带</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>无白带</Text></Item><Item><Text>有白带</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>851</InnerID><Text>。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>166</InnerID></Element><Element xsi:type="XString" StyleIndex="5"><InnerID>852</InnerID><Text>家族史</Text></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>853</InnerID><Text>：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>18d3dc46-8cf1-4d51-880d-81639f9ede5b</Value></Attribute></Attributes><InnerID>169</InnerID><ID>bb34b69e-2b67-4a42-9515-e0fa9dc19230</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>892</InnerID><Text>父：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>708a2c1d-95c2-4eba-a4b9-5ed57cd1e057</Value></Attribute></Attributes><InnerID>171</InnerID><ID>13ceec57-d6fb-4f6d-8f87-98fed2c51204</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>895</InnerID><Text>健在</Text></Element></XElements><BorderElementColor /><Name>e436195b-e26d-40eb-9721-3dd4ba20fc46</Name><InnerValue>健在</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>健在</Text></Item><Item><Text>患病</Text></Item><Item><Text>已故 死因：</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>893</InnerID><Text>，母：</Text></Element><Element xsi:type="XInputField"><Attributes><Attribute><Name>ID</Name></Attribute><Attribute><Name>ClickID</Name><Value>04f835b0-6fec-487f-b05c-1050cc4b4ec3</Value></Attribute></Attributes><InnerID>174</InnerID><ID>5784aed9-0250-4d77-a36e-282a8d0948df</ID><EnableValueValidate>true</EnableValueValidate><XElements><Element xsi:type="XString"><InnerID>896</InnerID><Text>健在</Text></Element></XElements><BorderElementColor /><Name>a5470381-5bd9-4f65-a28d-80aec99e9010</Name><InnerValue>健在</InnerValue><BackgroundText>XXXX</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings><EditStyle>DropdownList</EditStyle><ListSource><Items><Item><Text>健在</Text></Item><Item><Text>患病</Text></Item><Item><Text>已故 死因：</Text></Item></Items></ListSource></FieldSettings></Element><Element xsi:type="XString"><InnerID>894</InnerID><Text>，家族中无结核病、肝炎、性病等传染病史，无糖尿病、血友病家族性遗传性疾病 </Text></Element></XElements><BorderElementColor /><Name>600e0305-5654-488f-8c0a-0e7a9f36fc6d</Name><InnerValue>父：健在，母：健在，家族中无结核病、肝炎、性病等传染病史，无糖尿病、血友病家族性遗传性疾病 </InnerValue><BackgroundText>请在这里输入家族史！</BackgroundText><EditorActiveMode>F2 MouseDblClick MouseClick</EditorActiveMode><FieldSettings /></Element><Element xsi:type="XString" StyleIndex="3"><InnerID>854</InnerID><Text>。</Text></Element><Element xsi:type="XParagraphFlag" StyleIndex="5"><InnerID>178</InnerID></Element><Element xsi:type="XParagraphFlag"><InnerID>5007</InnerID><AutoCreate>true</AutoCreate></Element></XElements></Element><Element xsi:type="XTextFooter"><InnerID>5004</InnerID><AcceptTab>true</AcceptTab><XElements><Element xsi:type="XParagraphFlag"><InnerID>5009</InnerID><AutoCreate>true</AutoCreate></Element></XElements></Element></XElements><ContentStyles><Default xsi:type="DocumentContentStyle"><FontName>宋体</FontName><FontSize>12</FontSize></Default><Styles><Style Index="0"><FontName>宋体</FontName><FontSize>12</FontSize><Align>Center</Align></Style><Style Index="1"><FontName>宋体</FontName><FontSize>10.5</FontSize></Style><Style Index="2"><FontName>宋体</FontName><FontSize>10.5</FontSize><VerticalAlign>Middle</VerticalAlign><BorderWidth>1</BorderWidth><PaddingLeft>15</PaddingLeft><PaddingTop>10</PaddingTop><PaddingBottom>10</PaddingBottom></Style><Style Index="3"><FontName>宋体</FontName><FontSize>12</FontSize><LineSpacingStyle>Space1pt5</LineSpacingStyle></Style><Style Index="4"><FontName>宋体</FontName><FontSize>12</FontSize><Bold>true</Bold></Style><Style Index="5"><FontName>宋体</FontName><FontSize>12</FontSize><Bold>true</Bold><LineSpacingStyle>Space1pt5</LineSpacingStyle></Style></Styles></ContentStyles><Info><LicenseText>南京都昌信息科技有限公司内部使用:南京都昌信息科技有限公司内测旗舰版</LicenseText><CreationTime>1980-01-01T00:00:00</CreationTime><LastModifiedTime>2023-04-21T10:14:48.3941401+08:00</LastModifiedTime><LastPrintTime>1980-01-01T00:00:00</LastPrintTime><Operator>DCSoft.Writer Version:1.2023.3.6</Operator><NumOfPage>1</NumOfPage></Info><BodyText>    姓  名：刘XX  职  业：离退休 
    性  别：女 工作单位：南京市XX局 
    年  龄：82岁  住  址：长虹路XX号2单元301室 
    婚  姻：已婚  供史者(与患者关系)：(可靠) 
    出生地：江苏省南京市  入院日期：2014年03月14日 14时08分 
    民  族：汉族  记录日期： 主  诉：。
现病史：。
既往史：既往否认“肝炎、结核”等急慢性传染病，否认糖尿病、冠心病、高血压病 病史，否认外伤及手术史，否认输血史。否认食物过敏史，否认药物过敏史，预防接种史不详。否认疫区接触史，无毒物、放射性物质接触史。
个人史：出生地：，职业：，无冶游史，嗜烟：无，嗜酒：无。
婚育史：婚姻状况：未婚，结婚年龄：TRTR，配偶情况：，有子女。
月经史：Value1,Value2,Value2,Value4，经期规则，月经量正常，，。
家族史：父：健在，母：健在，家族中无结核病、肝炎、性病等传染病史，无糖尿病、血友病家族性遗传性疾病 。
</BodyText><LocalConfig /><PageSettings><StrictUsePageSize>false</StrictUsePageSize></PageSettings></XTextDocument>`
	ctl.ExecuteCommand("InsertXML", false, str)
}
</script>
<style scoped lang="scss"></style>
